<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>B</title>
	</head>
	<!-- 1.2 在页面B设置两个按钮，分别实现前进、后退功能 -->
	<body>
		<button type="button" onclick="evenB3()">跳转到页面C</button>
		<button type="button" onclick="evenB()">前进</button>
		<button type="button" onclick="evenB2()">后退</button>
	</body>
	<script type="text/javascript">
		function evenB(){
			history.go(1);
		};
		function evenB2(){
			history.go(-1);
		}
		function evenB3(){
			location.href='C.html';
		}
	</script>
</html>
